class SearchController < ApplicationController

  def user_by_email
    @users = User.find_all_by_email(params[:email])
  end

  def user_by_name
    @users = User.find_all_by_name(params[:name])
    render :user_by_email
  end
end
